const consoletable = require('@xdooi/consoletable')

/**
 *
 * @module routerTabel
 * @desc 存储配置路由打印信息模块
 *
 * */


// 插件打印表格
consoletable.drawTable([{
    Method:'GET',
    Path:'http://localhost:8066/api/home',
    Desc:'主站首页',
    is_Cache_Control:"强制缓存",
    Expires: '86400',
    Version:'v1.0.1',
},{
    Method:'GET',
    Path:'http://localhost:8066/api/detail',
    Desc:'单个详情页面',
    is_Cache_Control:"强制缓存",
    Expires: '86400',
    Version:'v1.0.1'
},{
    Method:'GET',
    Path:'http://localhost:8066/api/play',
    Desc:'获取播放地址',
    is_Cache_Control:"强制缓存",
    Expires: '86400',
    Version:'v1.0.1',
},{
    Method:'GET',
    Path:'http://localhost:8066/api/cate',
    Desc:'获取分类',
    is_Cache_Control:"强制缓存",
    Expires: '86400',
    Version:'v1.0.1',
},{
    Method:'GET',
    Path:'http://localhost:8066/api/cate/detail',
    Desc:'获取分类下面的详情',
    is_Cache_Control:"强制缓存",
    Expires: '86400',
    Version:'v1.0.1',
},{
    Method:'POST',
    Path:'http://localhost:8066/api/search',
    Desc:'获取搜索页面数据信息（支持验证码处理）',
    is_Cache_Control:"协商缓存",
    Expires: "-----",
    Version:'v1.0.2',
}])



// 原生打印表格方法
var languages = [
    { name: "C#", paradigm: "object-oriented" },
    { name: "F#", paradigm: "functional" },
    { name:"D#",  paradigm:"http://localhost:8066/api/home"}
];

console.table(languages);
